home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / COMMUNIC / GC101C.ZIP / GOCIS.TPL < prev    next >
Text File  |  1993-11-19  |  20KB  |  615 lines

  1. ;***************************************************************
  2. ;* GoCIS Commands Commands                                    *
  3. ;***************************************************************
  4. ;
  5. ; REMOVE or SET ACTION flags for forum as tasks are completed
  6. ; REMOVEACTION &&FORUMNAME Join.Forum
  7. ; SETACTION    &&FORUMNAME Set.Defaults
  8. ;
  9. ; Valid action flags
  10. ; Join.Forum
  11. ; Set.Defaults
  12. ; Update.Sections
  13. ; Read.Announcements
  14. ; Scan.New.Messages
  15. ; Read.Messages
  16. ; Send.Replies
  17. ; Read.New.Messages
  18. ; Read.Waiting.Messages
  19. ; Scan.Libraries
  20. ; Download.Files
  21. ; Upload.FIles
  22. ;
  23. ;
  24. ;
  25. ;  GO           forum_name
  26. ;  RESET
  27. ;  KILLFILE     filename
  28. ;  KILLDIR      directory
  29. ;  MAKEDIR      directory
  30. ;  LIB          library_number
  31. ;
  32. ;  SCANMES
  33. ;  SCANTHR
  34. ;  SCANLIB
  35. ;  QSCNLIB
  36. ;
  37. ;  JOIN
  38. ;
  39. ;  DOWNLOAD     filename pathname
  40. ;
  41. ;  READSEC
  42. ;  READMES
  43. ;  READTHR
  44. ;  READANN
  45. ;  READMAIL
  46. ;
  47. ;  RECORD
  48. ;
  49. ;  DO           scriptfile
  50. ;
  51. ;  LOGOFF
  52. ;  OFF
  53. ;  QUIT
  54. ;
  55. ;  S
  56. ;  SE
  57. ;  SEND         text
  58. ;
  59. ;  U
  60. ;  W
  61. ;  WA
  62. ;  WAIT         text
  63. ;
  64. ;  P
  65. ;  PA
  66. ;  PAUSE        number_of_seconds
  67. ;
  68. ;  C
  69. ;  CA
  70. ;  CAPTURE      filename
  71. ;
  72. ;  PR
  73. ;  PRINT        ON, or OFF
  74. ;
  75. ;  LOG          text
  76. ;
  77. ;  EC
  78. ;  ECHO         text
  79. ;               ON, or OFF
  80. ;
  81. ;  EN
  82. ;  END
  83. ;
  84. ;  N
  85. ;  NA
  86. ;  NAME
  87. ;
  88. ;  US
  89. ;  USER
  90. ;  USERID
  91. ;  RET
  92. ;  RETURN
  93. ;
  94. ;  DEBUG        ON, or OFF
  95. ;***************************************************************
  96. ;* GoCIS Variables                                            *
  97. ;***************************************************************
  98. ;       GoCIS Variables are denoted by a single & characters &
  99. ;       these variables are replaced with string values at the
  100. ;       time GoCIS executes the script.
  101. ;
  102. ; "&USERID"             CompuServe      UserID
  103. ; "&NAME"                               UserName
  104. ; "&PASSWORD"                           User Password
  105. ; "&GATEWAY"            Current Gateway
  106. ; "&FORUM"              Current Forum
  107. ;
  108. ;***************************************************************
  109. ;* GoCIS Conditional Commands                                 *
  110. ;***************************************************************
  111. ;
  112. ;
  113. ;     '%', '?' or '@'   are prefix condition characters that can
  114. ;                       prefix any command in order to make the
  115. ;                       command conditional on the success of any
  116. ;                       prior command.
  117. ;
  118. ;       Each occurrence of these prefix conditions denotes a
  119. ;       level of nesting that should be considered prior to
  120. ;       executing the command. Up to 10 levels of nesting
  121. ;       (or 10 prefix conditions) can be checked.
  122. ;
  123. ;       Basically processing proceeds as follows:
  124. :
  125. ;       For each Prefix condition:
  126. ;
  127. ;       For I = 0 to the Number-of-Prefix-Conditions
  128. ;               If The_Condition_At(I) = FALSE Then Skip This Command
  129. ;       Next
  130. ;
  131. ;       All Conditions are true So Perform the command and save the return code...
  132. ;
  133. ;       ReturnCode = Command()
  134. ;
  135. ;       If the command worked then ReturnCode = TRUE Else ReturnCode  = FALSE
  136. ;
  137. ;       Now set the next higher condition to the value of the ReturnCode so that
  138. ;       Other commands can be based on the success of the command just executed
  139. ;
  140. ;       Set The_Condition_At(Number-Of-Prefix-Conditions + 1) = ReturnCode
  141. ;
  142. ;
  143. ;       The Prefix Conditions Denote the following conditions
  144. ;
  145. ;
  146. ;      %   Defines a TRUE  condition at this error level
  147. ;      @   Defines a FALSE condition at this error level
  148. ;      ?   Defines a Don't Care Condition at this  error level
  149. ;
  150. ;
  151. ;       The following is an example of some of the concepts presented:
  152. ;
  153. ;
  154. ;       GO FORUM
  155. ;       ; This command will always be executed since there are no
  156. ;       ; prefix conditions.  If GoCIS successfully enters the FORUM
  157. ;       ; then the condition at level 1 will be set to TRUE otherwise it
  158. ;       ; will be set to FALSE
  159. ;
  160. ;       %ECHO We entered the FORUM successfully
  161. ;       ; The ECHO command will execute only if the condition at level 1 is TRUE
  162. ;       ; The ECHO Command does not return a condition and therefore does not
  163. ;       ; affect the condition at level 2
  164. ;
  165. ;       %LIB 1
  166. ;       ; We will only go to library 1 if the condition at level 1 is TRUE
  167. ;       ; this of course depends on that success of the GO FORUM Command
  168. ;       ; If the command is executed it will set the condition at Level 2
  169. ;
  170. ;       %%SCANLIB KEY:PROGRAMS LIB:ALL
  171. ;       ; Scanning for programs will depend of the success of getting to the Library Prompt
  172. ;       ; Therefore this command depends of the success of both the GO FORUM and LIB 1
  173. ;       ; commands.  Here we test 2 levels of prefix conditions denoted by the fact that
  174. ;       ; there are 2 '%' characters prefixing the SCANLIB Command
  175. ;       ; If the command is executed it will set the condition at Level 3
  176. ;
  177. ;       %@ECHO Can't Enter library 1 of the FORUM
  178. ;       ; This command will only be executed if we successfully entered the forum
  179. ;       ; and were unable to enter the library.  Since the first prefix_condition is
  180. ;       ; an % the condition at level 1 must be true, this was set by the value returned
  181. ;       ; by the GO FORUM command. If GO FORUM was not successful the command would be skipped
  182. ;       ; The second prefix_condition @ indicates that the condition at level 2 must be FALSE
  183. ;       ; this condition was last established by the %LIB 1 command.
  184. ;       ; The ECHO Command does not return a condition and therefore does not
  185. ;       ; affect the condition at level 3
  186. ;
  187. ;       @ECHO Can't Enter the FORUM
  188. ;       ; This command will only be executed if the GO FORUM command was unsuccessful
  189. ;       ; the @ indicates that the condition at level 1 must be FALSE.  This of course
  190. ;       ; was last set by the GO FORUM command.
  191. ;
  192. ;
  193. ;***************************************************************
  194. ;* Template Variables                                          *
  195. ;***************************************************************
  196. ;
  197. ;       Template Variables are denoted by the characters &&
  198. ;       these variables are replaced with string values at the
  199. ;       time GoCIS generates the script.  Don't confuse template
  200. ;       variables with script variables.  Script variables are
  201. ;       evaluated when the script is executed by GoCIS
  202. ;
  203. ;
  204. ;
  205. ; "&&USERID"        CompuServe UserID
  206. ; "&&USERNAME"                 UserName
  207. ; "&&PHONENUMBER"              PhoneNumber
  208. ; "&&LOGONSCRIPT"              LogonScript
  209. ;
  210. ; "&&GATEWAY"         Forum    Gateway
  211. ; "&&FORUMNAME"                Name
  212. ; "&&FORUMTITLE",              Title
  213. ; "&&CONTROLPATH"     Path For Control Files
  214. ; "&&DOWNLOADPATH"             Downloads
  215. ; "&&MESSAGEPATH"              Messages
  216. ; "&&SCRIPTPATH"               Scripts
  217. ;
  218. ; "&&LIBRARY"         Library  Number
  219. ; "&&DOWNLOADFILE"    Download FileName
  220. ; "&&DOWNLOADSIZE"             Filesize
  221. ; "&&DOWNLOADDATE"             Filedate
  222. ; "&&DOWNLOADCOUNT"            #DownLoads
  223. ; "&&DOWNLOADUPLD"             Uploaded by this CIS User
  224. ; "&&DOWNLOADTITLE"            Title Description of File
  225. ;
  226. ; "&&SCANFILE"        LibraryScan FileName
  227. ; "&&SCANAGE"                     Days old or age
  228. ; "&&SCANLIBS"                    Libraries to scan through
  229. ; "&&SCANKEYWORDS"                Keywords to look for
  230. ; "&&SCANTYPE"                    Short or long descriptions
  231. ; "&&SCANDESC"                    Description of this scan
  232. ;
  233. ; "&&READMSGSECTION"  ReadMessage Section Number
  234. ; "&&READMSGNUMBNER"              Thread or Message Number
  235. ;
  236. ; "&&VERSION"         GoCIS Version Number
  237. ; "&&DATE"            Date script was created
  238. ; "&&TIME"            Time script was created
  239. ;
  240. ;
  241. ;
  242. ;
  243. [PROLOG]
  244. ;
  245. ; This script file was created on &&DATE at &&TIME by &&USERNAME.
  246. ;
  247. ;***********************************************************************
  248. ;       GoCIS &&VERSION
  249. ;       Copyright(C) 1992
  250. ;       Larry Lee (76670,1471)
  251. ;       16038 Augusta Drive
  252. ;       Chino Hills, Ca 91709
  253. ;***********************************************************************
  254. ;
  255. ;
  256. WAI